<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>历年真题 - 乐考无忧</title>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="assets/css/bootstrap-icons.css">
    <style>
        body {
            background-color: #f0f9f9;
            padding-bottom: 70px;
        }
        .header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .year-card {
            background: white;
            margin: 15px;
            padding: 20px;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .year-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .year-title {
            color: #40E0D0;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .progress {
            height: 6px;
            margin: 15px 0;
        }
        .progress-bar {
            background-color: #40E0D0;
        }
        .stats-info {
            display: flex;
            justify-content: space-between;
            color: #666;
            font-size: 0.9rem;
            margin-top: 10px;
        }
        .stats-detail {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        .stats-item {
            text-align: center;
        }
        .stats-value {
            font-size: 1.2rem;
            color: #40E0D0;
            font-weight: bold;
        }
        .stats-label {
            font-size: 0.8rem;
            color: #666;
        }
        .accuracy-badge {
            background: #e9ecef;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
        }
        .accuracy-badge.low {
            background: #FFE4E1;
            color: #dc3545;
        }
        .accuracy-badge.medium {
            background: #FFF3CD;
            color: #856404;
        }
        .accuracy-badge.high {
            background: #E8F5E9;
            color: #28a745;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <div class="header d-flex align-items-center">
        <a href="math.html" class="text-dark">
            <i class="bi bi-chevron-left fs-4"></i>
        </a>
        <h5 class="mb-0 mx-auto">历年真题</h5>
    </div>

    <!-- 年份卡片 -->
    <a href="math-real-practice.html?year=2024" class="text-decoration-none">
        <div class="year-card">
            <h6 class="year-title">
                <span>
                    <i class="bi bi-calendar-fill"></i>
                    2024年真题
                </span>
                <span class="accuracy-badge high">正确率 85%</span>
            </h6>
            <div class="progress">
                <div class="progress-bar" style="width: 80%"></div>
            </div>
            <div class="stats-info">
                <span>已完成80%</span>
                <span>20/25题</span>
            </div>
            <div class="stats-detail">
                <div class="stats-item">
                    <div class="stats-value">20</div>
                    <div class="stats-label">已做题数</div>
                </div>
                <div class="stats-item">
                    <div class="stats-value">17</div>
                    <div class="stats-label">答对题数</div>
                </div>
                <div class="stats-item">
                    <div class="stats-value">3</div>
                    <div class="stats-label">错题数</div>
                </div>
                <div class="stats-item">
                    <div class="stats-value">5</div>
                    <div class="stats-label">剩余题数</div>
                </div>
            </div>
        </div>
    </a>

    <!-- 2023年卡片 -->
    <a href="math-real-practice.html?year=2023" class="text-decoration-none">
        <div class="year-card">
            <h6 class="year-title">
                <span>
                    <i class="bi bi-calendar-fill"></i>
                    2023年真题
                </span>
                <span class="accuracy-badge high">正确率 90%</span>
            </h6>
            <div class="progress">
                <div class="progress-bar" style="width: 100%"></div>
            </div>
            <div class="stats-info">
                <span>已完成100%</span>
                <span>25/25题</span>
            </div>
            <div class="stats-detail">
                <div class="stats-item">
                    <div class="stats-value">25</div>
                    <div class="stats-label">已做题数</div>
                </div>
                <div class="stats-item">
                    <div class="stats-value">22</div>
                    <div class="stats-label">答对题数</div>
                </div>
                <div class="stats-item">
                    <div class="stats-value">3</div>
                    <div class="stats-label">错题数</div>
                </div>
                <div class="stats-item">
                    <div class="stats-value">0</div>
                    <div class="stats-label">剩余题数</div>
                </div>
            </div>
        </div>
    </a>

    <!-- 更多年份卡片 -->

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html> 